package com.xia.mapper;


import com.xia.pojo.Book;

import java.util.List;
import java.util.Map;

public interface BookMapper {

    List<Book> queryByPage(Map<String, Object> map);

    Integer queryCount(Map<String, Object> map);

    Book queryById(Integer bookId);

    void updateBookInfo(Book book);

    void delBookById(Integer bookId);

    void addBook(Book book);

    void updateBookStock(Map<String, Object> map);

    void plusStock(Integer bookId);
}
